package wqh.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.ChannelDataDao;
import wqh.domain.ChannelData;
import wqh.service.ChannelDataService;

import java.util.List;
import java.util.Map;

@Service("channelDataService")
public class ChannelDataServiceImpl implements ChannelDataService{

    @Autowired
    private ChannelDataDao channelDataDao;

    public List<ChannelData> findAllRecord() {
        return this.channelDataDao.findAllRecord();
    }

    public List<ChannelData> findAllRecordDSEC_TIME() {
        return this.channelDataDao.findAllRecordDSEC_TIME();
    }

    public List<ChannelData> findAllRecordASC_TIME() {
        return this.channelDataDao.findAllRecordASC_TIME();
    }

    public List<ChannelData> findAllRecordDSEC_ID() {
        return this.channelDataDao.findAllRecordDSEC_ID();
    }

    public List<ChannelData> findAllRecordASC_ID() {
        return this.channelDataDao.findAllRecordASC_ID();
    }

    public List<ChannelData> findAllRecordDSEC_IP() {
        return this.channelDataDao.findAllRecordDSEC_IP();
    }

    public List<ChannelData> findAllRecordASC_IP() {
        return this.channelDataDao.findAllRecordASC_IP();
    }

    public List<ChannelData> findAllRecordDSEC_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordDSEC_IP_LIKE(ip);
    }

    public List<ChannelData> findAllRecordASC_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordASC_IP_LIKE(ip);
    }

    public Integer selectCount() {
        return this.channelDataDao.selectCount();
    }

    public List<ChannelData> findAllRecordDSEC_ID_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordDSEC_ID_IP_LIKE(ip);
    }

    public List<ChannelData> findAllRecordASC_ID_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordASC_ID_IP_LIKE(ip);
    }

    public List<ChannelData> findAllRecordDSEC_TIME_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordDSEC_TIME_IP_LIKE(ip);
    }

    public List<ChannelData> findAllRecordASC_TIME_IP_LIKE(String ip) {
        return this.channelDataDao.findAllRecordASC_TIME_IP_LIKE(ip);
    }

    public List<Map<Object,Object>> findChannel_1_ByIp(String ip) {
        return this.channelDataDao.findChannel_1_ByIp(ip);
    }

    public List<Map<Object,Object>> findChannel_2_ByIp(String ip) {
        return this.channelDataDao.findChannel_2_ByIp(ip);
    }

    public List<Map<Object,Object>> findChannel_3_ByIp(String ip) {
        return this.channelDataDao.findChannel_3_ByIp(ip);
    }

    public List<Map<Object,Object>> findChannel_4_ByIp(String ip) {
        return this.channelDataDao.findChannel_4_ByIp(ip);
    }

    public int insertRecord(ChannelData channelData) {
        return this.channelDataDao.insertRecord(channelData);
    }
}
